#include <iostream>
using namespace std;

int main()
{
	int year, month = 0;
	scanf("%4d%2d", &year, &month);
	if (month >= 3 && month <= 5)
		cout << "spring" << endl;
	else if (month >= 6 && month <= 8)
		cout << "summer" << endl;
	else if (month >= 9 && month <= 11)
		cout << "autumn" << endl;
	else if (month == 12 || month == 1 || month == 2)
		cout << "winter" << endl;
	else
		cout << "input month!" << endl;
	return 0;
}
